package cn.edu.sspu.www.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.sspu.www.domain.SysUser;
import cn.edu.sspu.www.mapper.SysUserMapper;
import cn.edu.sspu.www.service.SysUserService;

@Service
public class SysUserServiceImpl implements SysUserService {
	
	@Autowired
	private SysUserMapper mapper;

	@Override
	public int addSysUser(SysUser sysUser) {
		
		return mapper.addSysUser(sysUser);
	}

	@Override
	public int editSysUser(SysUser sysUser) {
		
		return mapper.editSysUser(sysUser);
	}

	@Override
	public int delSysUser(Long id) {
		
		return mapper.delSysUser(id);
	}

	@Override
	public List<SysUser> querySysUserList(SysUser queryVo) {
		
		return mapper.querySysUserList(queryVo);
	}

	@Override
	public SysUser viewSysUser(Long id) {
		
		return mapper.viewSysUser(id);
	}

}
